package com.ouheng.shop.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.ouheng.shop.dao.SexualitySubDao;
import com.ouheng.shop.domain.SexualitySubDO;
import com.ouheng.shop.service.SexualitySubService;



@Service
public class SexualitySubServiceImpl implements SexualitySubService {
	@Autowired
	private SexualitySubDao sexualitySubDao;
	
	@Override
	public SexualitySubDO get(Long id){
		return sexualitySubDao.get(id);
	}
	
	@Override
	public List<SexualitySubDO> list(Map<String, Object> map){
		return sexualitySubDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return sexualitySubDao.count(map);
	}
	
	@Override
	public int save(SexualitySubDO sexualitySub){
		return sexualitySubDao.save(sexualitySub);
	}
	
	@Override
	public int update(SexualitySubDO sexualitySub){
		return sexualitySubDao.update(sexualitySub);
	}
	
	@Override
	public int remove(Long id){
		return sexualitySubDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return sexualitySubDao.batchRemove(ids);
	}
	
}
